﻿#define  _CRT_SECURE_NO_WARNINGS 1

//编写代码，演⽰多个字符从两端移动，向中间汇聚
#include<stdio.h>
#include<windows.h>
int main()
{
	char arr1[] = "hello,bite";
	char arr2[] = "##########";
	int sz = strlen(arr1) - 1;
	int left = 0;
	int right = sz;
	printf("%s\n",arr2);
	while (left<=right)
	{
		arr2[left] = arr1[left];
		arr2[right] = arr1[right];

		Sleep(1000);//延时  windows.h
		printf("%s\n", arr2);
		system("cls");//清理屏幕
		left++;
		right--;
		
	
	}


	return 0;
}
